-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[rtsan][NFC] Remove rtsan_ prefix from stats variables #112762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
CC @davidtrevelyan , but I'm just going to submit this as I think it's not controversial |
|
@llvm/pr-subscribers-compiler-rt-sanitizer Author: Chris Apple (cjappl) ChangesFull diff: https://github.com/llvm/llvm-project/pull/112762.diff 1 Files Affected:
diff --git a/compiler-rt/lib/rtsan/rtsan_stats.cpp b/compiler-rt/lib/rtsan/rtsan_stats.cpp
index 1562b73cf94cd8..277182a7abc840 100644
--- a/compiler-rt/lib/rtsan/rtsan_stats.cpp
+++ b/compiler-rt/lib/rtsan/rtsan_stats.cpp
@@ -19,32 +19,32 @@
using namespace __sanitizer;
using namespace __rtsan;
-static atomic_uint32_t rtsan_total_error_count{0};
-static atomic_uint32_t rtsan_unique_error_count{0};
-static atomic_uint32_t rtsan_suppressed_count{0};
+static atomic_uint32_t total_error_count{0};
+static atomic_uint32_t unique_error_count{0};
+static atomic_uint32_t suppressed_count{0};
void __rtsan::IncrementTotalErrorCount() {
- atomic_fetch_add(&rtsan_total_error_count, 1, memory_order_relaxed);
+ atomic_fetch_add(&total_error_count, 1, memory_order_relaxed);
}
void __rtsan::IncrementUniqueErrorCount() {
- atomic_fetch_add(&rtsan_unique_error_count, 1, memory_order_relaxed);
+ atomic_fetch_add(&unique_error_count, 1, memory_order_relaxed);
}
static u32 GetTotalErrorCount() {
- return atomic_load(&rtsan_total_error_count, memory_order_relaxed);
+ return atomic_load(&total_error_count, memory_order_relaxed);
}
static u32 GetUniqueErrorCount() {
- return atomic_load(&rtsan_unique_error_count, memory_order_relaxed);
+ return atomic_load(&unique_error_count, memory_order_relaxed);
}
void __rtsan::IncrementSuppressedCount() {
- atomic_fetch_add(&rtsan_suppressed_count, 1, memory_order_relaxed);
+ atomic_fetch_add(&suppressed_count, 1, memory_order_relaxed);
}
static u32 GetSuppressedCount() {
- return atomic_load(&rtsan_suppressed_count, memory_order_relaxed);
+ return atomic_load(&suppressed_count, memory_order_relaxed);
}
void __rtsan::PrintStatisticsSummary() {
|
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/7711 Here is the relevant piece of the build log for the reference |
No description provided.